<template>
  <div>
    <div class="auth-page">
      {{$t('text')}}
    </div>
    <a-button type="primary" v-auth="'permission:AuthPageC:add'">{{$t('add')}}</a-button>
    <a-button type="primary" v-auth="'permission:AuthPageC:edit'">{{$t('edit')}}</a-button>
    <a-button type="primary" v-auth="'permission:AuthPageC:delete'">{{$t('del')}}</a-button>
    <a-button type="primary" v-if="hasPermission('permission:AuthPageC:check')">{{$t('see')}}</a-button>
    <a-button type="primary">{{$t('ordinary')}}</a-button>
  </div>
</template>
<script>
import { usePermission } from '@/helper/permission'
export default {
  data () {
    const { hasPermission } = usePermission()
    return {
      hasPermission
    }
  }
}
</script>

<style lang="less" scoped>

.auth-page {
  display: flex;
  height: 300px;
  font-size: 24px;
  color: #fff;
  background-color: #409efe;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  margin: 20px;
}
.ant-btn {
  margin-left: 20px;
}
</style>
